package com.lhm.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: lhm
 * @Date: 2020/12/4 17:25
 * 4
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student implements Serializable {

    @Excel(name = "编号")
    private Integer id;
    /**
     * width和height是导出是图片的宽度和高度
     * type：类型，2代表图片
     * savePath：保存的路径（右击保存图片的文件夹，选Copy Path就行，这里是存在static下的imgs中）
     */
    @Excel(name = "头像",width = 12.0,height = 12.0,type = 2,savePath = "E:\\java\\study\\springboot_easypoi\\src\\main\\resources\\static\\imgs")
    private String photo;
    @Excel(name = "姓名")
    private String name;
    @Excel(name = "电话",width = 20.0)
    private String tel;
    @Excel(name = "性别")
    private String sex;
    @Excel(name = "地址",width = 30.0)
    private String address;
    @Excel(name = "出生日期",format = "yyyy/MM/dd",width = 15.0)
    private Date birthday;

}
